var content=null;

$(document).ready(function(){
	geHotGoods();
});


function geHotGoods() {
	$.ajax({
		type : "post",
		async : false,
		url : "hotGoods.action",
		dataType : "json",
		data : {"hot":1},
		success :handleGood
	});
}

function handleGood(data){
	var output = "";
	for ( var i = 0; i < data.length; i++) {
		output += '<div class="box"><table border="0"><tr Style="height:55%">';
		output +='<td colspan="2"><a href="hotGoodDetail.action?goodId='+data[i].goodId+'">';
		output +='<img src="uImg/'+data[i].goodId+'.jpg" width="94%" height="260px"></a></td></tr>';
		output +='<tr><td colspan="2" style="width: 120px;text-align:left;padding-left:10px">';
		output +='<a href="hotGoodDetail.action?goodId='+data[i].goodId+'" target="saleframe">'+data[i].goodName+'</a><br />';
		output +='<br /> 数量 :'+data[i].count+'&nbsp;&nbsp;<span style="font-weight:bold;color:crimson">';
		output +='售价:'+data[i].price+' RMB</span></td></tr></table></div>';
	}
	output+="<br><br>";
	document.getElementById("here").innerHTML = output;
}
